import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    token:{}
  },
    mutations: {
    // 修改token
    saveToken(state, val) {
      state.token = val
    },
  },
  actions: {
    saveTokenA({ commit }, val) {
        commit('saveToken', val)
    }
  },
  modules: {
  }
})
